package com.yic.module.qms.controller.admin.inspectschemeentry.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 检验方案检验项关联 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class InspectSchemeEntryBaseVO {

    @Schema(description = "检验方案", requiredMode = Schema.RequiredMode.REQUIRED, example = "25573")
    @NotNull(message = "检验方案不能为空")
    private Long schemeId;

    @Schema(description = "检验项目", requiredMode = Schema.RequiredMode.REQUIRED, example = "19117")
    @NotNull(message = "检验项目不能为空")
    private Long entryId;

    @Schema(description = "检验工具")
    private String inspectTools;

    @Schema(description = "检验方法")
    private String inspectMethod;

    @Schema(description = "检验标准", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "检验标准不能为空")
    private String standardStr;

    @Schema(description = "标准值")
    private BigDecimal standard;

    @Schema(description = "误差上限")
    private BigDecimal standardUp;

    @Schema(description = "误差下限")
    private BigDecimal standardDown;

    @Schema(description = "单位")
    private Long unitId;

    @Schema(description = "工艺")
    private Long processId;

    @Schema(description = "备注", example = "你猜")
    private String remark;

}
